package com.suyl.candy.model.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.suyl.candy.model.entity.BussAccount;
import com.suyl.candy.model.entity.StatisticsAccount;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author suyl
 * @since 2020-04-21
 */
public interface BussAccountService extends IService<BussAccount> {

    public BigDecimal getTotalLoans();

    public BigDecimal getTotalAmountRepaid();

    public BigDecimal getTotalLoansMonth();

    public BigDecimal getTotalAmountRepaidMonth();

    public List<StatisticsAccount> getTotalAmountRepaidByType();

    /* 截止今天各类型未还多少期多少钱 */
    public List<StatisticsAccount> getTotalAmountNotByType();

    /* 每个月份需要还多少钱 */
    public List<StatisticsAccount> getByMonth();

    /* 截止当前已还，每个月还多少 */
    public List<StatisticsAccount> getTotalAmountRepaidByMonth();

    /* 截止当前未还，每个月还多少 */
    public List<StatisticsAccount> getTotalAmountNotByMonth();

    /* 最近times次待还款 */
    public List<BussAccount> getLatelyNNot(int times);

    /* 最近times次已还款 */
    public List<BussAccount> getLately(int times);

    public List<StatisticsAccount> getCurrentMonthGroupByType();
}
